/***********************************************
 @Name :        小铭同学
 @Time :        2025-08-15
 @Email :       LiaoMingWJ233@163.com
 @Comment :     功能窗口 工业控制
 @FileName :    widget_assist_control_industrial.h
 @Version :     1.0
************************************************/


#ifndef WIDGET_FUNCE_CONTROL_INDUSTRIAL_H
#define WIDGET_FUNCE_CONTROL_INDUSTRIAL_H

#include <QWidget>
#include "tcp.h"
#include <QTcpSocket>

namespace Ui {
class Widget_funcE_Control_industrial;
}

class Widget_funcE_Control_industrial : public QWidget
{
    Q_OBJECT
    
public:
    explicit Widget_funcE_Control_industrial(QWidget *parent = nullptr);
    ~Widget_funcE_Control_industrial();
    
    QTcpSocket * TCP_read;
    TCP TCP;
    
    bool isEmergencyStopped1 = false;
    bool isEmergencyStopped2 = false;
    bool isEmergencyStopped3 = false;
    bool isEmergencyStopped4 = false;
    
    bool isEmergencyStopped5 = false;
    bool isEmergencyStopped6 = false;
    bool isEmergencyStopped7 = false;
    bool isEmergencyStopped8 = false;
    
private slots:
    void on_pushButton_lj_clicked();
    
    void on_pushButton_fs_clicked();
    
    void readData();
    
private:
    Ui::Widget_funcE_Control_industrial *ui;
};

#endif // WIDGET_FUNCE_CONTROL_INDUSTRIAL_H
